package com.xiaoyung.easyisapisdk.feign.api.workflow;

import com.xiaoyung.easyisapisdk.common.workflow.entity.FlowParamsEntity;
import com.xiaoyung.easyisapisdk.common.workflow.request.FlowKeyParam;

import feign.Headers;
import feign.RequestLine;

/**
 * 流程参数
 * @author martin.lai
 */
/*@Api(tags={"流程默认启动参数设置"})
@ApiSupport(author = "Martin",order = 2)
@RestController
@RequestMapping(value = "/openapi/flowparams")*/
public interface FlowParamsApi {


	/**
	 * 保存流程参数字段
	 */
	/*@ApiOperation(value = "保存流程默认启动参数")
	@ApiOperationSupport(order = 1, includeParameters = {})
	@PostMapping(value = "/saveFlowParam", name = "保存流程参数")*/
	@Headers("Content-Type: application/json")
	@RequestLine("POST /openapi/workflow/flowparams/saveFlowParam")	
	public FlowParamsEntity saveFlowParam(FlowParamsEntity entity);

	/**
	 * 获取流程参数
	 */
	/*@ApiOperation(value = "查询流程默认启动参数")
	@ApiOperationSupport(order = 2, includeParameters = {})
	@ApiImplicitParams({
		@ApiImplicitParam(name = "flowKey", value = "流程key", dataTypeClass = String.class, paramType = "query", required = true),
	})
	@GetMapping("/findByFlowKey")*/
	@Headers("Content-Type: application/json")
	@RequestLine("POST /openapi/workflow/flowparams/findByFlowKey")
	public FlowParamsEntity findByFlowKey(FlowKeyParam param);

}
